<?php include_once TEMPLATEPATH.'/av-define.php';?>
<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="UTF-8" />
<title>
<?php 
global $page, $paged;
wp_title( '|', true, 'right' );
bloginfo( 'name' );
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) ) { echo " | $site_description"; }	
?>
</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<!-- bxSlider CSS file -->
<link href="<?php echo bloginfo('template_directory')?>/lib/jquery.bxslider.css" rel="stylesheet" />
<script src="<?php echo bloginfo('template_directory')?>/js/jquery.min.js"></script>
<!-- bxSlider Javascript file -->
<script src="<?php echo bloginfo('template_directory')?>/js/jquery.bxslider.min.js"></script>
<!-- aba Javascript file -->
<script src="<?php echo bloginfo('template_directory')?>/js/lib.js" type="text/javascript"></script>
<!-- serviço de captura de páginas (page thumb) 	
<script type="text/javascript" src="http://www.websnapr.com/js/websnapr.js"></script>
<script src="<?php echo bloginfo('template_directory')?>/js/gmap3.min.js"></script> -->
<!--
<script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>
-->
<?php 
wp_head();

// Recursos comuns às páginas
include_once RECURSO;
?>
</head>	
<?php flush(); ?>

<body onload="new Accordian('basic-accordian',10,'header_highlight');">
	<!-- Script FaceBook -->
	<script>(function(d, s, id) {
		var js, fjs = d.getElementsByTagName(s)[0];
		if (d.getElementById(id)) return;
		js = d.createElement(s); js.id = id;
		js.src = "//connect.facebook.net/pt_PT/all.js#xfbml=1";
		fjs.parentNode.insertBefore(js, fjs);
		}(document, 'script', 'facebook-jssdk'));
	</script>
	<!-- Script FaceBook -->
	
	<div class="vertical_space_43"></div><!-- Espaçamento -->
	
	<div id="tudo">	
		
		<div class="vertical_space_25"></div><!-- Espaçamento -->

		<?php 
		show_topo();
		if ( is_front_page () ) {
			//Do nothing
		} else { ?>
			<div class="vertical_space_5"></div><!-- Espaçamento -->
			<!-- Publicidade Um -->
			<div id="publicidade-1"><?php dynamic_sidebar( 'Publicidade 1' ); ?></div>
			<!-- Publicidade Um -->
			<div class="vertical_space_15"></div><!-- Espaçamento -->	
		<?php
		}
		?>
		